﻿using System;
using s2google.sync;
using s2google.sync.SyncProviders;
using sp2google.common;

namespace sp2google.console
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                var cfg = new Configuration()
                              {
                                  SPUserName = "developer",
                                  SPPassword = "addit",
                                  SPDomain = "msdev",
                                  SPWebUrl = "http://devbox",
                                  SPListName = "Calendar",
                                  GoogleUserName = "sp.to.goo@gmail.com", 
                                  GooglePassword = "5)Fsk6DX"
                              };

                var sync = new CalendarSync(cfg);

                sync.Sync(SyncProvider.SharePoint, SyncProvider.Google);
            }
            catch(Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
    }
}
